package crystal.workshop;

import java.util.ArrayList;
import java.util.Collection;

import mujl.io.FileReaderManager;
import mujl.ui.DefaultSelectionModel;

import crystal.lib.StructureData;

import crystal.workshop.ui.SimpleStructureDataSelectionModel;
import crystal.workshop.ui.SimpleStructureList;
import crystal.workshop.ui.StructureDataModel;

public class CrystalWorkshopFramework {
	
	protected final SimpleStructureList	strList = new SimpleStructureList();
	
	protected final FileReaderManager<StructureData> structureReaderManager =
		new FileReaderManager<StructureData>(FileReaderManager.Mode.EXTENSION);
	
	protected final DefaultSelectionModel<Collection<StructureDataModel>> strSelectionModel =
		new DefaultSelectionModel<Collection<StructureDataModel>>();
	
	public final ArrayList<StructureSource> structureSources =
		new ArrayList<StructureSource>();
	
	
	public FileReaderManager<StructureData> getStructureReaderManager(){
		return structureReaderManager;
	}
	
	public SimpleStructureList getStructuresList() {
		return strList;
	}
	
	public DefaultSelectionModel<Collection<StructureDataModel>> getStructureSelectionModel() {
		return strSelectionModel;
	}
}
